package com.imd.s9.feign;

import com.imd.base.BaseResponse;
import com.imd.base.BusinessException;
import com.imd.config.FeignConfig;
import com.imd.vo.s8.ProcessEntityVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;


/**
 * @author by cuiyulong
 * describe：
 */
@FeignClient(name = "s8bpm", configuration = FeignConfig.class)
public interface S8Bpm {

    @RequestMapping(value = "/bpm/process/entity/start", method = RequestMethod.POST)
    public BaseResponse startProcess(@RequestBody ProcessEntityVO vo) throws BusinessException;

    @RequestMapping(value = "/bpm/msg/notify/{userId}", method = RequestMethod.POST)
    public BaseResponse msgNotify(@PathVariable String userId, @RequestBody Map content) throws BusinessException;

}
